package org.tissou.client.Services;

import com.google.gwt.user.client.rpc.ServiceDefTarget;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.core.client.GWT;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Claire
 * Date: 19-Mar-2009
 * Time: 22:17:14
 * To change this template use File | Settings | File Templates.
 */
public interface EnsemblePropriosService extends RemoteService {
   List<ProprietaireInfos> donnerListeProprietaires();

  


  /**
   * Utility/Convenience class.
   * Use EnsemblePropriosService.App.getInstance() to access static instance of EnsemblePropriosServiceAsync
   */
  public static class App {
    private static final EnsemblePropriosServiceAsync ourInstance;

    static {
      ourInstance = (EnsemblePropriosServiceAsync) GWT.create(EnsemblePropriosService.class);
      ((ServiceDefTarget) ourInstance).setServiceEntryPoint(GWT.getModuleBaseURL() + "EnsemblePropriosService");
    }

    public static EnsemblePropriosServiceAsync getInstance() {
      return ourInstance;
    }
  }
}
